<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<meta http-equiv="pragma" content="no-cache" />
	<link rel="stylesheet" href="/css/style.css" type="text/css"/>
	<script type="text/javascript" src="/js/jquery.js"></script>
	<script type="text/javascript" src="/js/util.js"></script>
</head>
<script type="text/javascript">
//////////////////////////////////////////////////////////////////////
////  email = "wenpin.qian@happyelements.com"                     ////
////  team = "Athene"                                             ////
////  warnings = "This is generated page,Do Not Modify!";         ////
////  tips = "Opera & IE not supported|Chrome & Safari sugguested"////
//////////////////////////////////////////////////////////////////////
var SilverWeightstr = window.dialogArguments;
var SilverWeight = null;
if(SilverWeightstr != undefined && SilverWeightstr != "" && SilverWeightstr != "{}") {
		SilverWeight = s2json(SilverWeightstr);
}
$(document).ready(function() {
	if(SilverWeight != undefined) {
	
	$('#silver').val(SilverWeight.silver);	
	$('#weight').val(SilverWeight.weight);		
	}
	listselectors();
});
window.returnValue = SilverWeightstr;

function listselectors() {
}

function submitSilverWeight() {
	window.returnValue = json2s({
			
			silver:xparseInt($('#silver').val()),			
			weight:xparseInt($('#weight').val()),						
	});
	beforeWindowClose();
	window.close();
}

function beforeWindowClose() {
	if(window.returnCallback) {
		window.returnCallback(window.returnValue);
	}
	window.onbeforeunload = null;
	return true;
}

</script>
<body onunload="beforeWindowClose()">
	<div class="addarea">
	<table>
		<tbody>			
				<tr>				<td>
					<label for="silver">银币</label>
					
						<input type="text" id="silver" name="silver" />
									</td>
							
								<td>
					<label for="weight">权重</label>
					
						<input type="text" id="weight" name="weight" />
									</td>
				</tr>					</tbody>
	</table>
	</div>
	<input type="button" onclick="submitSilverWeight()" value="提交"/>
</body>